package fr.afcepf.atod12.afcepfvoyage.beans; 
 
import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="Client")
public class Client implements Serializable{
	@Transient
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private long idClient;
	@Column(length=30)
	private String nom;
	@Column(length=30)
	private String eMail;
	@Column(length=10)
	private String tel;
	@Column(length=10)
	private String password;
	private Date dateNaissance;
	@OneToOne
	private Adresse adresse;
	public Client() {
	}
    public final void setIdClient(long idClient) {
		this.idClient = idClient;
	}
	public final long getIdClient() {
		return idClient;
	}
	//private List<Reservation> reservations;
    public final String getNom() {
		return nom;
	}
	public final void setNom(String nom) {
		this.nom = nom;
	}
	public final void seteMail(String eMail) {
		this.eMail = eMail;
	}
	public final String geteMail() {
		return eMail;
	}
	public final void setTel(String tel) {
		this.tel = tel;
	}
	public final String getTel() {
		return tel;
	}
	public final void setPassword(String password) {
		this.password = password;
	}
	public final String getPassword() {
		return password;
	}
	public final void setDateNaissance(Date dateNaissance) {
		this.dateNaissance = dateNaissance;
	}
	public final Date getDateNaissance() {
		return dateNaissance;
	}
	public final void setAdresse(Adresse adresse) {
		this.adresse = adresse;
	}
	public final Adresse getAdresse() {
		return adresse;
	}
}

